Smush\Core\Modules\Bulk\Background_Bulk_Smush A

Total Complexity 53
Dependencies 8
Dependents 1
Total lines 314
Lines of code 210
Logical lines of code 110
Comment lines 37
Methods 27
Properties 3

Methods 27

Method Rating Maintainability Complexity Lines of code
cancel_programmatically()
A
58 10 13
bulk_smush_start()
S
52 4 26
bulk_smush_get_global_stats()
S
54 3 23
loopback_supported()
S
63 4 10
prepare_smush_tasks()
S
61 3 13
localize_background_stats()
S
64 3 9
prepare_background_tasks()
S
59 1 16
should_use_background()
S
77 2 4
is_background_enabled()
S
79 2 3
get_in_process_notice()
S
74 2 5
get_mail_recipient()
S
74 2 4
__construct()
S
58 1 15
check_ajax_referrer()
S
70 2 6
is_in_processing()
S
81 1 3
prepare_resmush_tasks()
S
65 1 10
get_total_items()
S
81 1 3
get_failed_items()
S
81 1 3
register_ajax_handler()
S
79 1 3
get_email_disabled_notice()
S
69 1 7
get_email_enabled_notice()
S
75 1 4
bulk_smush_get_status()
S
67 1 9
bulk_smush_cancel()
S
75 1 5
is_background_supported()
S
81 1 3
is_mysql_requirement_met()
S
78 1 3
get_required_mysql_version()
S
81 1 3
get_actual_mysql_version()
S
76 1 4
is_completed()
S
81 1 3